# encoding=utf8
# author: allen@thecover.co
# create_time: 2024/5/6 16:28
# file: gas.py
import timeit
from memory_profiler import memory_usage

def your_function(param1, param2):
    # 你的函数实现
    pass

# 计算函数执行时间
def measure_time():
    start_time = timeit.default_timer()
    mem_before = memory_usage()[0]
    for i in range(150000):
        print(i)
    end_time = timeit.default_timer()
    mem_after = memory_usage()[0]
    print(str(int((end_time - start_time)*1000)) + '*' + str(int((mem_after - mem_before)*1024*1024)) + 'gas')

measure_time()
